package cloud.xlh.exceptionhandle.exception;


import cloud.xlh.exceptionhandle.service.IResponseEnum;

/**
 * Created with IntelliJ IDEA.
 *
 * @ project name : xlh_osms
 * @ Author: XuLeHuang
 * @ Date: 2022/12/8 11:25
 * @ Description: 基础异常类
 */
public class BaseException extends RuntimeException {
    private IResponseEnum iResponseEnum;

    public BaseException(IResponseEnum responseEnum, Object[] args, String message) {
        super(message);
        this.iResponseEnum = responseEnum;
    }

    public BaseException(IResponseEnum responseEnum, Object[] args, String message, Throwable cause) {
        super(message, cause);
        this.iResponseEnum = responseEnum;
    }

    public IResponseEnum getResponseEnum() {
        return this.iResponseEnum;
    }
}
